import { Injectable } from "@angular/core";
import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Observable, of } from "rxjs";

import { User } from "./user";

@Injectable({
  providedIn: "root"
})
export class Test07Service {
  private URL_LIST = "api/selectAll";
  constructor(private http: HttpClient) {}

  getUsers(): Observable<User[]> {
    return this.http.get<User[]>(this.URL_LIST);
  }
}
